package de.gameduell.framework.locale {
	import flash.display.Sprite;
	
	import de.gameduell.framework.gui.wrapper.SpriteWrapper;
	import de.gameduell.framework.locale.Localizable;	

	/**
	 * @author cbra
	 */
	public class LocalizableSprite extends SpriteWrapper implements Localizable {
		
		protected var _localizables:Array;
		protected var _id:String;
		protected var _type:String;
		
		public function LocalizableSprite(aSprite:Sprite) {
			super(aSprite);
			_localizables = new Array();
		}
						
		public function set type(aType:String):void{
			_type = aType;
		}
		
		public function set id(aId:String):void{
			_id = aId;
		}		
			
		public function get type():String {
			return _type;
		}
		
		public function get id():String {
			return _id;
		}
		
		public function get localizableChildren():Array {
			return _localizables;
		}
			
		public function setText(aText:String, isHtml:Boolean, aAutoSize:String):void {
			
		}
		
		public function addLocalizable(aLocalizable:Localizable):void {
			_localizables.push(aLocalizable);
		}
	}
}
